updating oE attr_to_colors
attr_to_colors
include console.e default namespace is console public function attr_to_colors(integer attr_code)
Converts an attribute code to its foreground and background color components.
Parameters:
- attr_code : integer, an attribute code.
Returns:
A sequence, of two elements -- {fgcolor, bgcolor}
Example 1:
include std/console.e ? attr_to_colors(92)
Result:
{9,5}
See Also:
Not Categorized, Please Help
|